package com.espirit.init.base;

import org.springframework.stereotype.Component;

import com.espirit.eap.manager.ModelBuilderSupport;
import com.espirit.eap.manager.WorkGroup;

@Component
public class WorkGroupBuilder extends ModelBuilderSupport {
	
	public static final String NAME="name";
	
	@Override
	public boolean init() {
		return super.setClass(WorkGroup.class, "WorkGroup", "工作组") ;
	}
	
	@Override
	public void buildFields() {
		super.buildFields();
		
		addModelField(NAME, "Name", "名称");
	}
	
	@Override
	protected void addSearchFields() {
		super.addSearchField(convertPropertyToField(NAME));
	}
	
	@Override
	protected void addListFields() {
		addListField(convertPropertyToField(NAME ));
	}
	
	@Override
	protected void addDetailFields() {
		addDetailField(convertPropertyToField(NAME));
	}
}
